<?php

/**
 * DoctorHealthAdvice form.
 *
 * @package    docplus.co.za
 * @subpackage form
 * @author     Fox Matuku
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class DoctorHealthAdviceForm extends BaseDoctorHealthAdviceForm
{
    public function configure()
    {
        unset(
            $this['created_at'], $this['updated_at']
        );

        $this->widgetSchema['doctor_id'] = new sfWidgetFormInputHidden();

        $this->validatorSchema['topic'] = new sfValidatorString(array('max_length' => 255, 'required' => true), array('required' => 'Your *advice topic* is required.'));
        $this->validatorSchema['description'] = new sfValidatorString(array('max_length' => 2000, 'required' => true), array('required' => 'Your *advice * is required.', 'max_length' => 'Only 2000 characters allowed!'));
    }
}
